// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
import {CommonHttp} from '../app/common/common.http';

const commonHttp = new CommonHttp();
// 系统配置
const config = commonHttp.get('/assets/json/config.json');
export const environment = {
  production: false,
  systemInfo: 'ADMIN_INFO',
  systemToken: 'ADMIN_TOKEN',
  config: JSON.parse(config.data)
};
sessionStorage.setItem(environment.systemInfo, JSON.stringify(environment.config.systemInfo));
/*
 * For easier debugging in development mode, you can import the following file
 * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
 *
 * This import should be commented out in production mode because it will have a negative impact
 * on performance if an error is thrown.
 */
// import 'zone.js/dist/zone-error';  // Included with Angular CLI.
